﻿<controls:FloatableWindow xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  x:Class="wzSqlAdmin.pagine.Risultati"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=FloatableWindow"
           Width="800" Height="500" 
           Title="Risultati" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <toolkit:BusyIndicator IsBusy="False"  Name="Busy" >
        <Grid x:Name="LayoutRoot" Margin="2">

            <Grid.RowDefinitions>
                <RowDefinition Height="28" />
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Button x:Name="CancelButton" Content="Close" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="2" />
            <StackPanel Orientation="Horizontal" Name="TestaSx" Width="300" HorizontalAlignment="Left" >
                <Button x:Name="btnFirstPage" Content="&lt;&lt;" Margin="5, 2, 0, 2" CommandParameter="first"  Click="btnPage"/>
                <Button x:Name="btnPreviousPage"  Content="&lt;" Margin="5,2, 0, 2" CommandParameter="prev" Click="btnPage" />
                <ComboBox Height="23" HorizontalAlignment="Left"  Margin="5,0,0,0" SelectionChanged="cambioPage"  Name="cboAttPage" VerticalAlignment="Stretch" Width="100">

                </ComboBox>
                <sdk:Label Height="19" Name="lb" Width="7" Margin=" 3, 2, 3, 2" Content="/" />
                <sdk:Label Height="19" Name="lbTot"  Content="0" Margin=" 3, 2, 3, 2" />
                <Button x:Name="btnNextPage"   Content="&gt;" Margin="5, 2, 0, 2" CommandParameter="next"  Click="btnPage"/>
                <Button x:Name="btnLastPage"  Content="&gt;&gt;" Margin="5, 2, 0, 2" CommandParameter="last" Click="btnPage" />

            </StackPanel>
            <StackPanel Orientation="Horizontal" Name="TestaDx" Width="300" HorizontalAlignment="Right" >
                <sdk:Label Height="19" Name="label1" Width="63" Content="Page Size:" />
                <ComboBox Height="23" HorizontalAlignment="Left" Margin="0,2,0,2" Name="cboPage" VerticalAlignment="Stretch" Width="59" SelectionChanged="cambioPageSize">

                </ComboBox>
            </StackPanel>

            <sdk:DataGrid  AutoGenerateColumns="False" Height="auto" HorizontalAlignment="Stretch" 
             Grid.Row="1"   ScrollViewer.VerticalScrollBarVisibility="Auto"   Name="ris" VerticalAlignment="Stretch" Width="auto" />

        </Grid>
    </toolkit:BusyIndicator>
</controls:FloatableWindow>